package com.hbyj.db.function;

/**
 * 数据库基本信息类
 * @author Administrator
 *
 */

public class CDBInfo {
	private String dBType = "SQLServer";//数据库类型
	private String dBService = "";//数据库所在IP
	private String dBPort = "";
	private String dBName = "";//数据库名
	private String userName = "";//用户名
	private String passWord = "";//密码
	private String driverName = "net.sourceforge.jtds.jdbc.Driver";//数据库连接驱动
	//jdbc:jtds:sqlserver://127.0.0.1:1433;databaseName=HBYJXY
	private String connectionUrl = ""; //数据库连接url  形式    驱动名//ip:port;databaseName=dbname
	/**
	 * 构造函数
	 */
	public CDBInfo() {
		
	}
	
	/**
	 * 构造函数
	 * @param type 数据库类型
	 * @param service 数据库所在IP
	 * @param name 数据库名
	 * @param userName 用户名
	 * @param passWord 密码
	 */
	public CDBInfo(String type,String service,String name,String userName,String passWord,String driverName) {
		this.dBType = type;
		this.dBService = service;
		this.dBName = name;
		this.userName = userName;
		this.passWord = passWord;
		this.driverName = driverName;
	}
	public CDBInfo(String type,String connectionUrl,String userName,String password,String driverName){
		this.dBType = type;
		this.connectionUrl = connectionUrl;
		this.userName = userName;
		this.passWord = password;
		this.driverName = driverName;
	}

	public String getdBType() {
		return dBType;
	}

	public void setdBType(String dBType) {
		this.dBType = dBType;
	}

	public String getdBService() {
		return dBService;
	}

	public void setdBService(String dBService) {
		this.dBService = dBService;
	}

	public String getdBPort() {
		return dBPort;
	}

	public void setdBPort(String dBPort) {
		this.dBPort = dBPort;
	}

	public String getdBName() {
		return dBName;
	}

	public void setdBName(String dBName) {
		this.dBName = dBName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	public String getDriverName() {
		return driverName;
	}

	public void setDriverName(String driverName) {
		this.driverName = driverName;
	}

	public String getConnectionUrl() {
		return connectionUrl;
	}

	public void setConnectionUrl(String connectionUrl) {
		this.connectionUrl = connectionUrl;
	}

	
	
}
